package com.cast508.basic.common.utils;



import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;

/**
 * Created by bingli on 2018/4/9.
 */

public class SpringContestHelper {

    private final static Logger logger = LoggerFactory.getLogger(SpringContestHelper.class);

    @Resource
    private SpringContextUtils gSpringContextUtils;
//    private static SpringContestHelper springContestHelper;
//
//    public static SpringContestHelper getInstance() {
//        if(springContestHelper == null){
//            synchronized (SpringContextUtils.class) {
//                if(springContestHelper == null){
//                    springContestHelper = null;
//                }
//            }
//        }
//        return springContestHelper;
//    }

    public void init() throws Exception {
        String gSpringContextUtilsStr = gSpringContextUtils.toString();
        logger.info("初始化gSpringContextUtils成功,gSpringContextUtilsStr={}" + gSpringContextUtilsStr);
    }
}
